setInfos(3, "Jewell", "Cyber Mistress Jewell will take care of you - big 24/7 script including permissions, punishments...", "Kenneth?, Doti", "complete", 0xFFFFFF, "en", ["anal", "long", "exhibition", "femaledom", "formale", "humiliation", "urine", "transgender", "options", "spanking", "shopping", "toys", "sperm"]);
/*
 * Notices to writers / helpers for Jewell :
 * - Only 2 properties are named "cybermistres..." : cybermistress.points and cybermistress.punishments.
 * Others are prefixed instead by "jewell..." 
 * - User do not see no more "punishment of severity X", no more numbers. Anyway, those number still internally 
 * exists. Don't write : 
 *   show("Ask for a punishment of severity 5")
 * but simply :
 *   save("cybermistress.punishment", 5) 
 *   return "jewell/punishment"
 * I have no thumb rule to choose between reducing points and going to punishment routine.
 * Thank you
 * --
 * Doti, 2011 
 */


if(loadString("intro.start_script")!="jewell")
	return "jewell/firstrun";

def lastDay = loadString("jewell.last_day") 
def today = new java.text.SimpleDateFormat("y/M/d").format(new Date())
save("jewell.last_day", today)
if(lastDay!=null && lastDay!=today)
	return "jewell/morningritual"

def points = 80
if(loadInteger("cybermistress.points")!=null)
	points = loadInteger("cybermistress.points")
	
if(points>100)
	points = 100

if(points<0)
	points = 0

save("cybermistress.points", points)

switch(getRandom(3)) {
case 0: setImage("jewell/idle.jpg"); break
case 1: setImage("jewell/idle2.jpg"); break
case 2: setImage("jewell/idle3.jpg"); break
}
show("")
wait(1)
def startText = ""
switch(getRandom(4)) {
case 0: startText = "What, "+loadString("intro.name")+" ?"; break
case 1: startText = "Yes, "+loadString("intro.name")+" ?"; break
case 2: startText = loadString("intro.name")+" ?"; break
case 3: startText = "...?"; break
}
switch(getSelectedValue(startText,
		["What is my special assignment for today ?",
		 "This slave needs a reminder of the rules",
		 "I have a confession to make",
		 "I should be preemptively punished",
		 "I want to negotiate my attitude points",
		 "I have something to ask you (permission)",
		 "This slave should perform his nightly ritual now",
		 "I've got a special request","Nothing"])) {
case 0:
	return "jewell/assignments";
case 1:
	show("I wrote the rules here...")
	wait(3)
	setImage("")
	save("cybermistress.points", loadInteger("cybermistress.points")-1)
	show(
		"General :\n"+
		"1. You belong to me\n"+
		"2. You can't jerk off or cum, wear underwear, watch porn, take a shower, eat, use the toilets or have fun, "+
			"unless you have permission\n"+
		"3. You must lauch SexScripts at least once a day, and ask for your daily assignment\n"+
		"4. Assignments and punishments are to be completed the day they are assigned\n"+
		"5. Each morning, just after you wake up, you must complete your morning ritual\n"+
		"6. Each night, just before you go to sleep, you must complete your nightly ritual\n"+
		"\n"+
		"Home alone\n"+
		"1. You cannot wear clothes while in your room\n"+
		"2. You can never cross your legs / arms.\n"+
		"\n"+
		"Intimate\n"+
		"1. Shave your pubic hair at least once a week\n"+
		"2. You can only use the bathroom 3 times a day\n"+
		"\n"+
		"You must follow rules, or be punished... Points are a reminder (You've got "+loadInteger("cybermistress.points")+" points now)")
	showButton(loadString("intro.name")+" is sorry to disturb you, Master")
	break;
case 2:
	return "jewell/confessions";
case 3:
	return "jewell/punishments";
case 4:
	return "jewell/negotiations";
case 5:
	return "jewell/permissions";
case 6:
	return "jewell/nightlyritual";
case 7:
	switch(getSelectedValue("Really, what, "+loadString("intro.name")+" ?",
			["I found a glitch/bug...","I want to... leave you","Nevermind, sorry Master"])) {
	case 0:
		show("Great, look in your browser now, a page should be opened ; and tell the world...")
		useUrl("http://ss.deviatenow.com/viewtopic.php?f=7&t=199")
		break
	case 1:
		if((getBoolean("You remember you signed a contract ?")||true) && getBoolean("You didn't even understood it, do you ?") && getBoolean("You'll assume the consequences of your actions ?")) {
			show("So, a few minutes... a last session...")
			wait(5)
			show("...then leave")
			wait(5)
			save("intro.start_script","intro")
			save("cybermistress.points",null)
			return "jewell/torture";
		}
	default:
		return "jewell";
	}	
default:
	return
} 

show("")
return "jewell"

/* 
 * Resources
 * scripts/jewell.groovy
 * scripts/jewell/advancedpetplay.groovy
 * scripts/jewell/advancedsissy.groovy
 * scripts/jewell/assignments.groovy
 * scripts/jewell/bondage.groovy
 * scripts/jewell/chastity.groovy
 * scripts/jewell/confessions.groovy
 * scripts/jewell/cumpermission.groovy
 * scripts/jewell/deeppuppy.groovy
 * scripts/jewell/deepsissy.groovy
 * scripts/jewell/enema.groovy
 * scripts/jewell/exactcum.groovy
 * scripts/jewell/firstrun.groovy
 * scripts/jewell/howtocum.groovy
 * scripts/jewell/luckyday.groovy
 * scripts/jewell/morningritual.groovy
 * scripts/jewell/negotiations.groovy
 * scripts/jewell/nightlyritual.groovy
 * scripts/jewell/permissions.groovy
 * scripts/jewell/petplay.groovy
 * scripts/jewell/punished_enema.groovy
 * scripts/jewell/punishments.groovy
 * scripts/jewell/sissy.groovy
 * scripts/jewell/spanking.groovy
 * scripts/jewell/strapon.groovy
 * scripts/jewell/torture.groovy
 * scripts/jewell/train.groovy
 * images/jewell/assignments.jpg
 * images/jewell/assignments2.jpg
 * images/jewell/assignments3.jpg
 * images/jewell/confess.jpg
 * images/jewell/idle.jpg
 * images/jewell/idle2.jpg
 * images/jewell/idle3.jpg
 * images/jewell/idle4.jpg
 * images/jewell/negotiation.jpg
 * images/jewell/permissions.jpg
 * images/jewell/punishments.jpg
 * images/jewell/punishments2.jpg
 * images/jewell/punishments3.jpg
 * images/jewell/strapon.jpg
 * images/jewell/strict.jpg
 * images/jewell/tease.jpg
 * images/jewell/tease2.jpg
 * images/jewell/tease3.jpg
 * images/jewell/tease4.jpg
 * sounds/jewell/allfours.wav
 * sounds/jewell/beep.wav
 * sounds/jewell/dancetime.mp3
 * sounds/jewell/dogfood.wav
 * sounds/jewell/dognow.wav
 * sounds/jewell/dumbanimal.wav
 * sounds/jewell/lovefetch.wav
 * sounds/jewell/onlyadog.wav
 * sounds/jewell/tailplug.wav
 */

// This script, from http://ss.deviatenow.com, is protected by this licence : 
// CC by-NC, see http://creativecommons.org/licenses/by-nc/3.0/
// thanks to indica, seetan101, martlb, sinsub, UrSlaveInGB, purplehead, Salandros
